package com.ktjy.t382.ch01.mapper;

import com.ktjy.t382.ch01.entity.SysUser;

import java.math.BigDecimal;

public interface SysUserMapper {
    SysUser select(SysUser sysUser);

    SysUser login(SysUser sysUser);

    BigDecimal getBalance(String cradon);//查询余额方法

    String getPassword(String cradon);//查询密码

    int update(SysUser sysUser);//修改密码

    int getSelectCount(String cradon);//查询账号是否存在

    int deduction(String cardno, BigDecimal balance);//扣除账号上的钱

    int Profit(String cardno, BigDecimal balance);//增加账号上的钱

    int insert1(String cardno, BigDecimal money, BigDecimal balance, String name);

    int insert2(String cardno, BigDecimal money, BigDecimal balance, String name);

}
